<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        @keyframes dh {
            from {
                background-position: 0 0;
            }
            to {
                background-position: -1680px 0;
            }
        }
        @keyframes run {
            0%{
                transform: translate(0,0);
            }
            100%{
                transform: translate(1000px);
            }
        }
        div{
            width: 140px;
            height: 128px;
            background-image: url(../img/bg.png);
            /* border: 1px solid black; */
            animation: dh .5s steps(12) infinite,
             run 3s linear infinite;
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>